# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyevmasm
_pkgname=pyevmasm
pkgver=0.2.3
pkgrel=6
pkgdesc='Ethereum Virtual Machine (EVM) assembler and disassembler.'
arch=('any')
url='https://pypi.org/project/pyevmasm/#files'
license=('Apache2')
depends=('python' 'python-future')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('9956f7f468c983eefa4a6e4a78dca0c77c9eb5dd38296996371dbaf8c9b3fe4ed9f7eb8d9e2dcdec2ed9426c23270e17628eaf7e8386e3673b6f2d5d591b53bc')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

